<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width">

  <?php if (isset($meta_description) && !empty($meta_description)) { ?>
    <meta name="description" content="<?php echo $meta_description; ?>" />
  <?php } ?>
  <?php if (isset($meta_keywords) && !empty($meta_keywords)) { ?>
    <meta name="keywords" content="<?php echo $meta_keywords; ?>" />
  <?php } ?>

  <title><?php echo $title_for_layout; ?></title>

  	<?php
    echo $this->Html->css('bootstrap.min');
    echo $this->Html->css('bootstrap-responsive.min');
    echo $this->Html->css('menu');
    echo $this->Html->css('style', null, array("id"=>"mainCss"));
    ?>
    <!--Fonts -->
    <link href='http://fonts.googleapis.com/css?family=Yellowtail' rel='stylesheet' type='text/css'>
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
		<?php 
    echo $this->Html->script('modernizr-2.6.2-respond-1.1.0.min');
    ?>
  </head>
  <body>
    <div class="row-fluid">
    <div id="container" class="span10 offset1">
      <!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
      
      <header>
        <?php echo $this->element('header'); ?>
      </header>
     

      <div id="contentSection" class="row-fluid">

        <div class="row-fluid">
        <nav id="topNav" class="horizontalMenu span10 offset1">
          <?php echo $this->element('main_nav'); ?>
        </nav>
        </div>

        <div class="row-fluid">
          <div role="main" class="span12">
          <?php $breadcrumbs =  $this->Html->getCrumbs(' > ','Home');
            if(!empty($breadcrumbs)) {
              echo '<div id="breadcrumbs">';
              echo $breadcrumbs;
              echo '</div>';
            }
          ?>
            <?php echo $content_for_layout; ?>

          </div>
        </div>

      </div>

  
      <footer id="footer" class="row-fluid">
        <?php echo $this->element('footer'); ?>
      </footer>
  
    

    </div> <!-- End of #container-->
    </div>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> 
    <script>window.jQuery || document.write('<?php echo str_replace("</script>", "<\/script>", $this->Html->script("jquery-1.8.3.min"));?>')</script>
    <?php 
		echo $this->Html->script('bootstrap.min');
    	echo $scripts_for_layout; 
	?>
    
<script type="text/javascript">
  $(function(){
   
  });
</script>

<script type="text/javascript">
<!--
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-7598726-4']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
-->
</script>
  </body>
</html>